package com.tarena.lbs.user.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.Email;
import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AdminParam implements Serializable {
    @ApiModelProperty(value = "账号类型(平台、商家)", name = "accountType", example = "0", required = true)
    Integer accountType;
    @ApiModelProperty(value = "商家ID", name = "businessId", example = "1", required = true)
    Integer businessId;
    @ApiModelProperty(value = "手机号", name = "accountPhone", example = "19941253145", required = true)
    String accountPhone;
    @ApiModelProperty(value = "密码", name = "accountPassword", example = "123456", required = true)
    String accountPassword;
    @ApiModelProperty(value = "用户名称", name = "nickname", example = "闫鹏宇", required = true)
    String nickname;
    @Email(message = "邮箱格式不正确")
    @ApiModelProperty(value = "电子邮箱", name = "email", example = "yanpengyu5@tedu.cn", required = true)
    String email;
    @ApiModelProperty(value = "账号状态（是否启用）0 启用 -1禁用", name = "accountStatus", example = "1", required = true)
    Integer accountStatus;
    

}